<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>拍真宝活动列表[{$_total}]</h2>
	</div>
	<div class="cf">
		<div class="fl">
            <a class="btn" href="{:U('Special/editpaipinactivity')}">新 增</a>
            <button class="btn ajax-post" target-form="ids" url="{:U("Special/changeStatus",array("method"=>"paipinactivity","status"=>1))}">启 用</button>
			<button class="btn ajax-post" target-form="ids" url="{:U("Special/changeStatus",array("method"=>"paipinactivity","status"=>0))}">禁 用</button>
			<button class="btn ajax-post confirm" url="{:U('Special/delete',array('method'=>'panic'))}" target-form="ids">删 除</button>
        </div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
	<table class="">
    <thead>
        <tr>
		<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
		<th class="">编号</th>
		<th class="">名称</th>
		<th class="">简介</th>
		<th class="">创建时间</th>
		<th class="">状态</th>
		<th class="">操作</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
            <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
			<td>{$vo.id} </td>
			<td>{$vo.title}</td>
			<td><span>{$vo.short_desc}</span></td>
			<td>{$vo.create_time|time_format}</td>
			<td>{$vo.status_text}</td>
			<td><a href="{:U('Special/editpaipinactivity?id='.$vo['id'])}">编辑</a>
				<eq name="vo.status" value="1">
				<a href="{:U('Special/changeStatus?method=paipinactivity&status=0&id='.$vo['id'])}" class="ajax-get">禁用</a>
				<else/>
				<a href="{:U('Special/changeStatus?method=paipinactivity&status=1&id='.$vo['id'])}" class="ajax-get">启用</a>
				</eq>
				<a href="{:U('Special/delete?method=paipinactivity&id='.$vo['id'])}" class="confirm ajax-get">删除</a></td>
		</tr>
		</volist>
		<else/>
		<td colspan="7" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
	</div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
	<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
	<script type="text/javascript">
	$(function(){
	    //导航高亮
        highlight_subnav('{:U('Special/Paipinactivity')}');
	})
	</script>
</block>
